package com.trilead.ssh2.transport;

import java.io.IOException;
import java.net.Socket;

import com.trilead.ssh2.SelfConnectionProxyData;

public class ProxySocks5ClientTransportManager extends ClientTransportManager {


    private SelfConnectionProxyData pd;

    public ProxySocks5ClientTransportManager(final Socket socket, final SelfConnectionProxyData pd) {
        super(socket);
        this.pd = pd;
    }

    @Override
    protected void connect(final String hostname, final int port, final int connectTimeout) throws IOException {
    	setSock(pd.connect());
    }
}
